package com.api.course;

import com.edu.entity.HfdClassInfo;
import com.edu.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
//远程调用
@FeignClient("edu-search")
@RequestMapping("/search")
public interface ESClient {

//    /**
//     * 声明接口 审核完成后同步到es
//     * @param hfdClassInfo
//     * @return
//     */
//    @RequestMapping("/course2es")
//    public Result course2es(@RequestBody HfdClassInfo hfdClassInfo);
}
